<template>
    <div class="wrap fade1">
        <div class="fade2">
            <div class="header">
                <h3>温馨提示</h3>
                <a href="javascript:;" @click="">x</a>
            </div>
            <div class="body">
                <span>亲，您是否确认删除商品</span>
            </div>
            <div class="footer">
                <button>取消</button>
                <!-- <button @click="del(delitem)">确认</button> -->
            </div>
        </div>
    </div>
</template>

<script>

</script>

<style lang="scss" scoped>
.fade1 {
    transition: all .4s;
    background: rgba(0, 0, 0, .5) !important;
}

.fade2 {
    transition: all .4s;
    transform: translate(-50%, -50%);
    opacity: 1 !important;
}

.wrap {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 8888;
    background: transparent;

    &>div {
        width: 400px;
        background: #fff;
        border-radius: 4px;
        overflow: hidden;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -60%);
        opacity: 0;

        .header {
            height: 50px;
            line-height: 50px;
            padding: 0 20px;
            position: relative;

            h3 {
                font-weight: 400;
                font-size: 18px;
            }

            a {
                position: absolute;
                right: 15px;
                top: 15px;
                font-size: 20px;
                width: 20px;
                height: 20px;
                line-height: 20px;
                text-align: center;
                color: #999;
            }
        }

        .body {
            padding: 20px 40px;
            font-size: 16px;

            span {
                padding: 20px 40px;
                font-size: 16px;
            }
        }

        .footer {
            text-align: right;
            height: 50px;
            line-height: 50px;
            padding: 0 20px;

            button {
                margin-left: 20px;
                width: 60px;
                height: 32px;
                font-size: 14px;
                outline: none;
                border-radius: 4px;
                cursor: pointer;

                &:nth-of-type(1) {
                    border-color: #ccc;
                    background: #ccc;
                    color: #fff;
                }

                &:nth-of-type(2) {
                    border-color: #27ba9b;
                    background: #27ba9b;
                    color: #fff;
                }
            }
        }
    }
}
</style>